<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
    <title>ShellCheck: SC1072 – Unexpected ..</title>
    <link rel="stylesheet" href="css/bootstrap.min.css" />
  </head>
  <body style="margin-left: auto; margin-right: auto; max-width: 800px">
    <h1>SC1072 – ShellCheck Wiki</h1>
    <a href="https://github.com/koalaman/shellcheck/wiki/SC1072">See this page on GitHub</a>
    <p style="display: none"><a href="index.html">Sitemap</a></p>
    <hr />
    <h1 id="unexpected-">Unexpected ..</h1>
<p><em>Note: There is a <a href="https://www.shellcheck.net/issues/1036">known bug</a> in the
current version when <a href="Directive.html">directives</a> appear
within <code>then</code> clauses of <code>if</code> blocks that causes
Shellcheck to report SC1072 on otherwise valid code. Avoid using
directives within <code>then</code> clauses - instead place them at the
top of the <code>if</code> block or another enclosing block. This is
fixed on the <a href="../index.html">online version</a>
and the next release.</em></p>
<p>See <a
href="https://github.com/koalaman/shellcheck/wiki/Parser-Error">Parser
Error</a>.</p>
    <hr />
    <p style='font-size: 80%'><a href="../index.html">ShellCheck</a> is a static analysis tool for shell scripts. This page is part of its documentation.</p>
  </body>
</html>


